@echo off
cd /d %~dp0

echo "Please unzip Graphvia first, otherwise package failed!"
TIMEOUT /T 3

if exist ".\dist" (
   rd/s/q ".\dist"
)
if exist ".\build" (
   rd/s/q ".\build"
)

pyinstaller update_fsm.spec

rd/s/q ".\build"
echo "package success, check dist dir"


echo "press any key to exit"
input